home *** CD-ROM | disk | FTP | other *** search
- property pDeviantTarget, spriteNum
- global immutableCustomers, mutableCustomers
-
- on getPropertyDescriptionList
- description = [:]
- addProp(description, #pDeviantTarget, [#default: EMPTY, #format: #string, #comment: "Not In List Target:"])
- return description
- end
-
- on doListSelect
- unfound = "TRUE"
- repeat with i = 1 to immutableCustomers.count
- if immutableCustomers[i].Customer = sprite(spriteNum).member.text then
- doFillInvoice(immutableCustomers[i])
- unfound = "FALSE"
- exit repeat
- end if
- end repeat
- if unfound = "TRUE" then
- repeat with i = 1 to mutableCustomers.count
- if mutableCustomers[i].Customer = sprite(spriteNum).member.text then
- doFillInvoice(mutableCustomers[i])
- unfound = "FALSE"
- exit repeat
- end if
- end repeat
- end if
- if unfound <> "FALSE" then
- if pDeviantTarget <> EMPTY then
- go(pDeviantTarget)
- end if
- end if
- end
-
- on doFillInvoice corpse
- member("field:Bill To").text = corpse.BillTo
- member("field:Ship To").text = corpse.ShipTo
- member("field:Terms").text = corpse.Terms
- member("field:Rep").text = corpse.Rep
- end
-